/*
 * @Description: IBE信息化平台
 * @Author: IBE
 * @Date: 2020-05-14 13:58:52
 * @LastEditTime: 2020-07-01 10:14:41
 * @LastEditors: yang
 */
import request from "@/utils/request"
const BASE_URL = process.env.VUE_APP_BASE_URL_HRM

/**
 * 合同基本信息
 * @param {*} data
 */
export function hrmEmployeeContractInformationAPI(id) {
	return request({
		url: BASE_URL + `hrmEmployeeContract/contractInformation/${id}`,
		method: "post"
	})
}

/**
 * 添加合同
 * @param {*} data
 */
export function hrmEmployeeContractaddContractAPI(data) {
	return request({
		url: BASE_URL + "hrmEmployeeContract/addContract",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 修改合同
 * @param {*} data
 */
export function hrmEmployeeContractSetContractAPI(data) {
	return request({
		url: BASE_URL + "hrmEmployeeContract/setContract",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 删除合同
 * @param {*} data
 */
export function hrmEmployeeContractDeleteAPI(id) {
	return request({
		url: BASE_URL + `hrmEmployeeContract/deleteContract/${id}`,
		method: "post"
	})
}
